#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
	int i = 1;
	int j = 1;
	for (i = 1; i <= 4; i++)
	{
		for (j = 1; j <= 8; j=j*2)
		{
			printf("%-2d ",i*j);
		}
		printf("\n");
	}
	return 0;
}